/*  1:   */ package org.intellij.plugins.relaxNG.compact.psi.impl;
/*  2:   */ 
/*  3:   */

import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.PsiFile;
import com.intellij.psi.ResolveState;
import com.intellij.psi.scope.PsiScopeProcessor;
import org.intellij.plugins.relaxNG.compact.psi.RncDefine;
import org.intellij.plugins.relaxNG.compact.psi.RncElementVisitor;
import org.intellij.plugins.relaxNG.compact.psi.RncInclude;
import org.jetbrains.annotations.NotNull;

/*  4:   */
/*  5:   */
/*  6:   */
/*  7:   */
/*  8:   */
/*  9:   */
/* 10:   */
/* 11:   */
/* 12:   */
/* 13:   */ 
/* 14:   */ public class RncIncludeImpl
/* 15:   */   extends RncFileReferenceImpl
/* 16:   */   implements RncInclude
/* 17:   */ {
/* 18:   */   public RncIncludeImpl(ASTNode paramASTNode)
/* 19:   */   {
/* 20:36 */     super(paramASTNode);
/* 21:   */   }
/* 22:   */   
/* 23:   */   public boolean processDeclarations(@NotNull PsiScopeProcessor paramPsiScopeProcessor, @NotNull ResolveState paramResolveState, PsiElement paramPsiElement1, @NotNull PsiElement paramPsiElement2)
/* 24:   */   {
/* 25:41 */     if (paramPsiScopeProcessor == null) {
/* 26:41 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/plugins/relaxNG/compact/psi/impl/RncIncludeImpl", "processDeclarations" }));
/* 27:   */     }
/* 28:41 */     if (paramResolveState == null) {
/* 29:41 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "1", "org/intellij/plugins/relaxNG/compact/psi/impl/RncIncludeImpl", "processDeclarations" }));
/* 30:   */     }
/* 31:41 */     if (paramPsiElement2 == null) {
/* 32:41 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "3", "org/intellij/plugins/relaxNG/compact/psi/impl/RncIncludeImpl", "processDeclarations" }));
/* 33:   */     }
/* 34:41 */     PsiElement[] arrayOfPsiElement1 = getChildren();
/* 35:42 */     for (PsiElement localPsiElement : arrayOfPsiElement1) {
/* 36:43 */       if (!paramPsiScopeProcessor.execute(localPsiElement, paramResolveState)) {
/* 37:44 */         return false;
/* 38:   */       }
/* 39:   */     }
/* 40:47 */     return super.processDeclarations(paramPsiScopeProcessor, paramResolveState, paramPsiElement1, paramPsiElement2);
/* 41:   */   }
/* 42:   */   
/* 43:   */   public void accept(@NotNull RncElementVisitor paramRncElementVisitor)
/* 44:   */   {
/* 45:51 */     if (paramRncElementVisitor == null) {
/* 46:51 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/intellij/plugins/relaxNG/compact/psi/impl/RncIncludeImpl", "accept" }));
/* 47:   */     }
/* 48:51 */     paramRncElementVisitor.visitInclude(this);
/* 49:   */   }
/* 50:   */   
/* 51:   */   public void accept(CommonElement.Visitor paramVisitor)
/* 52:   */   {
/* 53:56 */     paramVisitor.visitInclude(this);
/* 54:   */   }
/* 55:   */   
/* 56:   */   public PsiFile getInclude()
/* 57:   */   {
/* 58:60 */     return getReferencedFile();
/* 59:   */   }
/* 60:   */   
/* 61:   */   @NotNull
/* 62:   */   public RncDefine[] getOverrides()
/* 63:   */   {
/* 64:66 */     RncDefine[] tmp9_6 = ((RncDefine[])findChildrenByClass(RncDefine.class));
/* 65:66 */     if (tmp9_6 == null) {
/* 66:66 */       throw new IllegalStateException(String.format("@NotNull method %s.%s must not return null", new Object[] { "org/intellij/plugins/relaxNG/compact/psi/impl/RncIncludeImpl", "getOverrides" }));
/* 67:   */     }
/* 68:66 */     return tmp9_6;
/* 69:   */   }
/* 70:   */ }



/* Location:           E:\idea\

 * Qualified Name:     org.intellij.plugins.relaxNG.compact.psi.impl.RncIncludeImpl

 * JD-Core Version:    0.7.0.1

 */